Object display method and electronic device

ABSTRACT

An object display method includes: obtaining a second image in a case that a first image is displayed, where the first image is an image acquired by a first camera, the second image is an image acquired by a second camera, each of the first image and the second image includes a plurality of objects, the plurality of objects are images of a plurality of first physical objects, and resolution of the second image is greater than that of the first image; displaying, in the first image according to the second image, at least one identifier for indicating M target object(s) in the plurality of objects in the first image, where M is a positive integer; receiving a first input for a first object in the M target object(s) in the first image; and magnifying display of a first object in the second image in response to the first input.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2020/131166, filed on Nov. 24, 2020, which claims the priority toChinese Patent Application No. 201911167320.5, filed on Nov. 25, 2019.The entire contents of each of the above-identified applications areexpressly incorporated herein by reference.

TECHNICAL FIELD

Embodiments of the present disclosure relate to the field ofcommunications technologies, and in particular, to an object displaymethod and an electronic device.

BACKGROUND

As the intelligence of electronic devices keep increasing, applicationprograms in the electronic devices have more and more functions.

A gallery application program (referred to as a gallery applicationbelow) in an electronic device is used as an example. Currently, when auser views a photo through the gallery application, if the user needs toview a magnified display effect of an object in the photo, the user mayperform an input for the object to trigger the electronic device tomagnify display of the object for the user to view the magnified displayeffect of the object.

However, in the above process, after the electronic device magnifiesdisplay of an object, the image resolution of the object decreases,leading to a poor display effect when the electronic device magnifiesthe display of the object.

SUMMARY

Embodiments of the present disclosure provide an object display methodand an electronic device.

According to a first aspect, embodiments of the present disclosureprovide an object display method. The method is applied to an electronicdevice. The method includes: obtaining a second image in a case that afirst image is displayed; displaying at least one identifier in thefirst image according to the second image; then receiving a first inputfor a first object in M target object(s) in the first image; andmagnifying display of a first object in the second image in response tothe first input. The first image is an image acquired by a first camera,the second image is an image acquired by a second camera, each of thefirst image and the second image includes a plurality of objects, theplurality of objects are images of a plurality of first physicalobjects, and resolution of the second image is greater than that of thefirst image. The at least one identifier is used for indicating the Mtarget object(s) in the plurality of objects in the first image, and Mis a positive integer.

According to a second aspect, the embodiments of the present disclosureprovide an electronic device. The electronic device may include anobtaining module, a processing module, and a receiving module. Theobtaining module is configured to obtain a second image in a case that afirst image is displayed, where the first image is an image acquired bya first camera, the second image is an image acquired by a secondcamera, each of the first image and the second image includes aplurality of objects, the plurality of objects are images of a pluralityof first physical objects, and resolution of the second image is greaterthan that of the first image. The processing module is configured todisplay at least one identifier in the first image according to thesecond image obtained by the obtaining module, where the at least oneidentifier is used for indicating M target object(s) in the plurality ofobjects in the first image, and M is a positive integer. The receivingmodule is configured to receive a first input by a user for a firstobject in the M target object(s) in the first image displayed by theprocessing module. The processing module is further configured tomagnify display of a first object in the second image in response to thefirst input received by the receiving module.

According to a third aspect, the embodiments of the present disclosureprovide an electronic device. The electronic device includes aprocessor, a memory, and a computer program stored in the memory andrunnable on the processor, where when the computer program is executedby the processor, the steps of the foregoing object display method inthe first aspect are implemented.

According to a fourth aspect, the embodiments of the present disclosureprovide a non-transitory computer-readable storage medium, storing acomputer program, where when the computer program is executed by aprocessor, the steps of the foregoing object display method in the firstaspect are implemented.

In the embodiments of the present disclosure, in a case that anelectronic device displays a first image that is acquired by a firstcamera and includes a plurality of objects, the electronic device mayobtain a second image that is acquired by a second camera and includesthe plurality of objects (the plurality of objects are images of aplurality of first physical objects, and resolution of the second imageis greater than that of the first image). In addition, the electronicdevice may display, in the first image according to the second image, atleast one identifier for indicating M (M is a positive integer) targetobjects in the plurality of objects in the first image. Then theelectronic device may receive a first input by a user for a first objectin the M target object(s) in the first image. The electronic devicemagnifies display of a first object in the second image in response tothe first input. By means of the solution, if the user needs to view amagnified display effect of a target object in the plurality of objectsin the first image, the electronic device may obtain the second imagethat includes the plurality of objects, and magnify display of thetarget object in the second image. Resolution of the second image isgreater than that of the first image. Therefore, when the electronicdevice magnifies the display of the target object in the second image,it can be ensured that the electronic device magnifies the display ofthe target object with an adequate display effect.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic architectural diagram of an Android operatingsystem according to an embodiment of the present disclosure;

FIG. 2 is a schematic diagram 1 of an object display method according toan embodiment of the present disclosure;

FIG. 3 is a schematic diagram 1 of an interface to which an objectdisplay method according to an embodiment of the present disclosure isapplied;

FIG. 4 is a schematic diagram 2 of an interface to which an objectdisplay method according to an embodiment of the present disclosure isapplied;

FIG. 5 is a schematic diagram 2 of an object display method according toan embodiment of the present disclosure;

FIG. 6 is a schematic diagram 3 of an interface to which an objectdisplay method according to an embodiment of the present disclosure isapplied;

FIG. 7 is a schematic structural diagram of an electronic deviceaccording to an embodiment of the present disclosure; and

FIG. 8 is a schematic hardware diagram of an electronic device accordingto an embodiment of the present disclosure.

DETAILED DESCRIPTION

The following describes the technical solutions in the embodiments ofthe present disclosure with reference to the accompanying drawings inthe embodiments of the present disclosure. Apparently, the describedembodiments are some of the embodiments of the present disclosure ratherthan all of the embodiments. All other embodiments obtained by a personof ordinary skill in the art based on the embodiments of the presentdisclosure without creative efforts shall fall within the protectionscope of the present application.

The term “and/or” in this specification is an association relationshipfor describing associated objects and represents that threerelationships may exist. For example, A and/or B may represent thefollowing three cases: Only A exists, both A and B exist, and only Bexists. The symbol “/” herein represents that associated objects have an“or” relationship. For example, “A/B” represents “A or B”.

The terms “first”, “second”, and the like herein are intended todistinguish between different objects but do not indicate a particularorder of the objects. For example, a first input, a second input, andthe like are used for distinguishing between different inputs ratherthan describing a specific order of the inputs.

In addition, in the embodiments of the present disclosure, the word“exemplary” or “for example” is used to represent giving an example, anillustration, or a description. Any embodiment or design schemedescribed as an “exemplary” or “for example” in the embodiments of thepresent disclosure should not be explained as being more preferred orhaving more advantages than another embodiment or design scheme.Exactly, use of the word “example” or “for example” or the like isintended to present a related concept in a specific manner.

In the description of the embodiments of the present disclosure,“plurality” means two or more unless otherwise described. For example,“a plurality of elements” means two or more elements.

Embodiments of the present disclosure provide an object display methodand an electronic device, applied to a scenario of magnifying display ofan object in an image. Specifically, in a case that an electronic devicedisplays a first image that is acquired by a first camera and includes aplurality of objects, the electronic device may obtain a second imagethat is acquired by a second camera and includes the plurality ofobjects (the plurality of objects are images of a plurality of firstphysical objects, and resolution of the second image is greater thanthat of the first image). In addition, the electronic device maydisplay, in the first image according to the second image, at least oneidentifier for indicating M (M is a positive integer) target objects inthe plurality of objects in the first image. Then the electronic devicemay receive a first input by a user for a first object in the M targetobject(s) in the first image. The electronic device magnifies display ofa first object in the second image in response to the first input. Bymeans of the solution, if the user needs to view a magnified displayeffect of a target object in the plurality of objects in the firstimage, the electronic device may obtain the second image that includesthe plurality of objects, and magnify display of the target object inthe second image. Resolution of the second image is greater than that ofthe first image. Therefore, when the electronic device magnifies thedisplay of the target object in the second image, it can be ensured thatthe electronic device magnifies the display of the target object with anadequate display effect.

The electronic device in the embodiments of the present disclosure maybe an electronic device with an operating system. The operating systemmay be an Android operating system or may be an iOS operating system ormay be another possible operating system. This is not specificallylimited in the embodiments of the present disclosure.

An Android operating system is used as an example below to describe asoftware environment to which the object display method according to theembodiments of the present disclosure is applied.

FIG. 1 is a schematic architectural diagram of a possible Androidoperating system according to an embodiment of the present disclosure.In FIG. 1, the architecture of the Android operating system includesfour layers: an application program layer, an application programframework layer, a system runtime library layer, and a kernel layer(which may be specifically a Linux kernel layer).

The application program layer includes various application programs(including system application programs and third-party applicationprograms) in the Android operating system. For example, the applicationprogram layer may include an application program displaying an image inthe embodiments of the present disclosure, for example, any applicationprogram that may display an image such as a gallery application program,a camera application program, a shopping application program, and acommunication application program.

The application program framework layer is a framework for applicationprograms. A developer may develop some application programs based on theapplication program framework layer in the case of conforming to thedevelopment principle of the framework for application programs. Forexample, the application program displaying an image in the embodimentsof the present disclosure may be developed based on the applicationprogram framework layer.

Generally, the application program displaying an image in theembodiments of the present disclosure may include two parts. One part isan image display service (service) run in the background of anelectronic device, and is configured to detect an input by triggeringdisplay of an image by a user, recognize an object in the displayedimage, extract the object in the image, generate an identifier, andperform other operations. The other part is content displayed on ascreen of the electronic device, for example, a picture displayed on thescreen of the electronic device.

The system runtime library layer includes a library (also referred to asa system library) and an Android operating system runtime environment.The library mainly provides the Android operating system with varioustypes of resources required by the Android operating system. The Androidoperating system runtime environment is used for providing the Androidoperating system with a software environment.

The kernel layer is an operating system layer of the Android operatingsystem and is the bottommost layer in software layers of the Androidoperating system. The kernel layer provides the Android operating systemwith kernel system services and hardware-related drivers based on theLinux kernel.

The Android operating system is used as an example. In the embodimentsof the present disclosure, a developer may develop, based on the systemarchitecture of the foregoing Android operating system shown in FIG. 1,a software program for implementing the object display method providedin the embodiments of the present disclosure, to allow the objectdisplay method to be performed based on the Android operating systemshown in FIG. 1. That is, the processor or the electronic device may runthe software program in the Android operating system to implement theobject display method provided in the embodiments of the presentdisclosure.

The electronic device in the embodiments of the present disclosure maybe a mobile electronic device or may be a non-mobile electronic device.For example, the mobile electronic device may be a mobile phone, atablet computer, a notebook computer, a palmtop computer, an in-vehicleterminal, a wearable device, an Ultra-Mobile Personal Computer (UMPC), anetbook, a Personal Digital Assistant (PDA), or the like. The non-mobileelectronic device may be a Personal Computer (PC), a television (TV), ateller machine, a self-service machine, or the like. This is notspecifically limited in the embodiments of the present disclosure.

The object display method provided in the embodiments of the presentdisclosure may be performed by the foregoing electronic device or may bea functional module and/or a functional entity that can implement theobject display method in the electronic device. Details may bedetermined according to an actual use requirement. This is not limitedin the embodiments of the present disclosure. The object display methodprovided in the embodiments of the present disclosure is exemplarilydescribed below by using an electronic device as an example.

In the embodiments of the present disclosure, the electronic device maybe an electronic device provided with a plurality of cameras. For theelectronic device provided with a plurality of cameras (for example,including a first camera and a second camera in the embodiments of thepresent disclosure), when the electronic device acquires an image, theelectronic device may acquire images separately by using the firstcamera and the second camera, to respectively obtain a first image and asecond image. Generally, the first image acquired by the first cameramay be stored at a position (for example, a gallery application program)that is in the electronic device and is visible to a user. That is, theuser may interact with the gallery application program to view the firstimage. The second image acquired by the second camera may be stored at aposition that is in a server or the electronic device and is invisibleto the user. That is, the user cannot view the second image. When theuser needs to view a magnified display effect of a target object in thefirst image, the user may trigger (for example, trigger the electronicdevice to enter an object analysis and magnification mode) theelectronic device to obtain the second image from the server or theelectronic device, recognize a target object from the second image, thenmagnify the target object according to a preset power, and finallydisplay the magnified target object. That is, the electronic device maymagnify display of the target object in the second image. In this case,resolution of the second image is greater than that of the first image.Therefore, when the electronic device magnifies the display of thetarget object in the second image, it can be ensured that the electronicdevice magnifies the display of the target object with an adequatedisplay effect.

The details of the object display method provided in the embodiments ofthe present disclosure are exemplarily described below with reference tothe accompanying drawings.

As shown in FIG. 2, the embodiments of the present disclosure provide anobject display method. The method may include the following S201 toS204.

S201: An electronic device obtains a second image in a case that theelectronic device displays a first image.

For example, it is assumed that the first image is an image in thegallery application program. In this case, a user may trigger theelectronic device to run the gallery application program in theforeground. In a case that the electronic device runs the applicationprogram in the foreground, an interface of the gallery applicationprogram may be displayed on a screen of the electronic device. Next, theuser may perform an operation on the interface to interact with thegallery application program to allow the screen of the electronic deviceto display the first image. In addition, the electronic device mayobtain the second image acquired when the electronic device acquires thefirst image.

The first image may be an image acquired by the electronic device byusing a first camera, and the second image may be an image acquired bythe electronic device by using a second camera.

For example, in the embodiments of the present disclosure, a focallength of the second camera is greater than that of the first camera.That is, in comparison between the second camera and the first camera,the second camera may be a long-focus camera, and the first camera maybe a short-focus camera. For example, the first camera may be awide-angle camera.

For example, in the embodiments of the present disclosure, theelectronic device may use the wide-angle camera by default to acquire animage. That is, generally, when the user triggers the electronic deviceto acquire an image, in addition to that the user triggers theelectronic device to select the long-focus camera, the electronic devicemay preferentially use the short-focus camera (for example, theforegoing wide-angle camera) to acquire an image.

For example, in the embodiments of the present disclosure, the secondimage may be an image acquired by the electronic device by using thesecond camera and stored in a case that the user triggers the firstcamera of the electronic device to acquire the first image.Specifically, in a possible implementation, when the user triggers thefirst camera of the electronic device to acquire the first image, theelectronic device may automatically acquire the second image by usingthe second camera and store the second image. In another possibleimplementation, after the user triggers the first camera of theelectronic device to acquire the first image, the electronic device mayautomatically acquire the second image by using the second camera andstore the second image.

For example, in the embodiments of the present disclosure, each of thefirst image and the second image may include a plurality of objects. Theplurality of objects may be images of a plurality of first physicalobjects. That is, the first image and the second image may be acquiredimages of the plurality of first physical objects in the same area. Thatis, an area in which the first camera acquires the first image and anarea in which the second camera acquires the second image may be thesame area. Certainly, it may be understood that the same area is only atheoretical concept. During actual implementation, a deviation may beallowed between the two areas (the deviation may be within an acceptablerange).

It needs to be noted that in the embodiments of the present disclosure,even if the area in which the first camera acquires the first image andthe area in which the second camera acquires the second image are thesame, because the first camera and the second camera have differentfocal lengths, in addition to the plurality of objects, other differentobjects may be further included in the first image and the second image.That is, in addition to the plurality of first physical objects, otherdifferent physical objects may be further included in the same area.

It may be understood that in the embodiments of the present disclosure,the objects in the first image may be displayed images of physicalobjects in an area (the area in which the first image is acquired)corresponding to the first image in the first image. The objects in thesecond image may be displayed images of physical objects in an area (thearea in which the second image is acquired) corresponding to the secondimage in the second image. For example, in the first image, a bee imagein the first image may be a displayed image of a “bee” in the areacorresponding to the first image in the first image.

For example, in the embodiments of the present disclosure, resolution ofthe second image is greater than that of the first image.

It may be understood that in a case that the focal length of the secondcamera is greater than that of the first camera, for the same area,resolution of the image in the area acquired by using the second camerais greater than that of the image in the area acquired by using thefirst camera.

S202: The electronic device displays at least one identifier in thefirst image according to the second image.

The at least one identifier may be used for indicating M targetobject(s) in the plurality of objects in the first image. Specifically,each identifier in the at least one identifier may be used forindicating at least one target object in the M target object(s) in thefirst image, where M is a positive inter.

It needs to be noted that in the embodiments of the present disclosure,physical objects corresponding to some target objects in the M targetobject(s) may be located in a relatively small area (for example,distances between the physical objects corresponding to these targetobjects are relatively small), and when the first image is displayed onthe electronic device, a display size of the area in the first image isrelatively small (for example, the user cannot distinguish these targetobjects corresponding to the area in the first image with naked eyes).Therefore, when displaying the at least one identifier, the electronicdevice may display an identifier for these target objects correspondingto the area. That is, the identifier may indicate these target objectscorresponding to the area.

For example, in the embodiments of the present disclosure, whendisplaying the at least one identifier, the electronic device maydisplay the at least one identifier in the area in which the M targetobject(s) in the first image are located. For example, the electronicdevice may display an identifier in an area in which a target object orsome target objects in the first image are located, to indicate thetarget object or the some target objects.

For example, in the embodiments of the present disclosure, the foregoingS202 may be specifically implemented by using the following S202 a andS202 b.

S202 a: The electronic device recognizes the objects in the second imageaccording to target attribute information to obtain M target object(s)in the second image.

At least one physical object corresponding to the M target object(s) inthe second image may belong to an attribute indicated by the targetattribute information.

For example, it is assumed that the target attribute information is ananimal attribute (that is, indicates an animal). The electronic devicemay recognize the objects in the second image according to the animalattribute, to obtain all animal images in the second image. That is, theM target object(s) in the second image are obtained, and a physicalobject corresponding to every target object in the M target object(s)belongs to an animal attribute. In some embodiments, it is assumed thatthe target attribute information is a person attribute (that is,indicates a person). The electronic device may recognize the objects inthe second image according to the person attribute, to obtain all personimages in the second image. That is, the M target object(s) in thesecond image are obtained, and a physical object corresponding to everytarget object in the M target object(s) belongs to a person attribute.

S202 b: The electronic device displays at least one identifier in thefirst image according to the M target object(s) in the second image.

In the embodiments of the present disclosure, after the electronicdevice obtains the M target object(s) from the second image, theelectronic device may display the at least one identifier in the firstimage according to the M target object(s) in the second image.

For example, it is assumed that the target attribute information is theanimal attribute. (a) in FIG. 3 is a schematic diagram of an interfaceof displaying the first image by the electronic device. (b) in FIG. 3 isa schematic diagram of an interface of displaying the second image bythe electronic device. The schematic diagram of the first image and theschematic diagram of the second image are shown by using an example inwhich the first image and the second image include the same objects.After the electronic device recognizes the objects in the second imageaccording to the animal attribute to obtain all animal images in thesecond image, the electronic device may display in the first imageidentifiers 31 to 35 shown in (a) in FIG. 3. The identifier 31 mayindicate an animal image 1, the identifier 32 may indicate an animalimage 2, the identifier 33 may indicate an animal image 3 and an animalimage 4, the identifier 34 may indicate an animal image 5, and theidentifier 35 may indicate an animal image 6. It may be understood thatan animal corresponding to the animal image 3 and an animalcorresponding to the animal image 4 are located in the same area, anddisplay sizes of the animal image 3 and the animal image 4 in a previewimage are relatively small. Therefore, the electronic device may displayan identifier 33 for the animal image 3 and the animal image 4.

For example, in the embodiments of the present disclosure, the foregoingS202 a may be specifically implemented by using the following S202 a 1and S202 a 2.

S202 a 1: The electronic device obtains at least one template image froma template library according to the target attribute information.

At least one physical object corresponding to at least one object in theat least one template image may belong to the attribute indicated by thetarget attribute information.

For example, it is assumed that the target attribute information is theanimal attribute. At least one physical object corresponding to the atleast one object in the at least one template image obtained by theelectronic device from the template library according to the animalattribute belong to the animal attribute.

For example, in the embodiments of the present disclosure, in a casethat a connection is established between the electronic device and aserver, the electronic device may obtain the at least one template imagefrom a template library of the server. In a case that a connection isnot established between the electronic device and the server, theelectronic device may obtain the at least one template image from atemplate library of the electronic device. The template image in thetemplate library of the server and the template image in the templatelibrary of the electronic device are both prestored template images.

S202 a 2: The electronic device matches the second image against the atleast one template image to recognize the objects in the second image.

In the embodiments of the present disclosure, after the electronicdevice obtains the at least one template image, the electronic devicemay match the second image against the at least one template image torecognize the objects in the second image.

For example, in the embodiments of the present disclosure, theelectronic device may match feature points corresponding to the secondimage against feature points corresponding to the at least one templateimage to recognize the objects in the second image. Specifically, theelectronic device may first extract the feature points corresponding tothe second image from the second image, and extract the feature pointscorresponding to each template image in the at least one template imagefrom the at least one template image, and then the electronic device mayseparately match the feature points corresponding to the second imageagainst the feature points corresponding to the each template image, torecognize the objects in the second image. The electronic device mayextract the feature points from the second image and the template imageby using an image processing algorithm.

For example, the image processing algorithm may be any possible imageprocessing algorithm such as a face recognition algorithm (forrecognizing a human face) or a cluster analysis algorithm (forrecognizing a physical object), and may be specifically determinedaccording to an actual use requirement. This is not limited in theembodiments of the present disclosure.

In the embodiments of the present disclosure, the electronic device mayrecognize the objects in the second image according to the featurepoints corresponding to the second image and the obtained feature pointscorresponding to each template image in the at least one template image.Therefore, the electronic device may accurately recognize the objects inthe second image, thereby accurately recognizing objects belonging to anattribute that the user needs to recognize in the second image.

S203: The electronic device receives a first input for a first object inM target object(s) in the first image.

In the embodiments of the present disclosure, the first input may beused by the user to determine the first object. That is, the user mayuse the first input to trigger the electronic device to determine thefirst object.

For example, in the embodiments of the present disclosure, the firstinput may be an input by the user for the first object, or the firstinput may be an input by the user for an identifier used for indicatingthe first object. Details may be determined according to an actual userequirement. This is not limited in the embodiments of the presentdisclosure.

Specifically, in the embodiments of the present disclosure, in a casethat each identifier in the at least one identifier indicates oneobject, the first input may be an input by the user for the first objector an input by the user for an identifier used for indicating the firstobject. In a case that the identifier in the at least one identifierindicates a plurality of objects, in a possible implementation, the usermay first perform an input for the identifier to trigger the electronicdevice to display the plurality of objects indicated by the identifier,and then the user may perform the first input for the first object (inthis case, the first object is one object) in the plurality of objects.In another possible implementation, the user may directly perform thefirst input for the identifier (in this case, the first object is aplurality of objects).

For example, in the embodiments of the present disclosure, the firstinput may be an input in any possible form such as a click input, a longpress input or a heavy press input. Details may be determined accordingto an actual use requirement. This is not limited in the embodiments ofthe present disclosure.

The click input may be a single click input, a double click input or aninput by clicking a preset quantity of times. The long press input maybe an input by a press with a duration greater than or equal to a timethreshold of the user on the first object or of the user on theidentifier for indicating the first object. The heavy press input may bean input by a press with a pressure value greater than or equal to apressure threshold of the user on the first object or of the user on theidentifier for indicating the first object.

For example, in the embodiments of the present disclosure, the presetquantity of times, the time threshold, and the pressure threshold may bevalues preset in the electronic device. The preset quantity of times,the time threshold, and the pressure threshold may be values preset by amanufacturer of the electronic device in the electronic device. Detailsmay be determined according to an actual use requirement. This is notlimited in the embodiments of the present disclosure.

S204: The electronic device magnifies display of a first object in thesecond image in response to the first input.

In the embodiments of the present disclosure, after the electronicdevice receives the first input by the user for the first object in theM target object(s) in the first image, the electronic device may magnifythe display of the first object in the second image in response to thefirst input.

For example, with reference to FIG. 3, after the electronic devicedisplays in the first image the identifiers shown by 31 to 35 in FIG. 3,it is assumed that the first object is the object indicated by theidentifier 32 in FIG. 3. In this case, after the user clicks theidentifier 32, that is, the electronic device receives the first inputby the user, in response to the first input, as shown in FIG. 4, theelectronic device may magnify the display of the first object (shown by40 in FIG. 4) in the second image (shown by (b) in FIG. 3).

In the embodiments of the present disclosure, when the user needs toview a magnified display effect of a target object in the plurality ofobjects in the first image, the electronic device may obtain the secondimage that includes the plurality of objects, and magnify display of thetarget object in the second image. Resolution of the second image isgreater than that of the first image. Therefore, when the electronicdevice magnifies the display of the target object in the second image,it can be ensured that the electronic device magnifies the display ofthe target object with an adequate display effect.

In the embodiments of the present disclosure, the second image is animage acquired by the electronic device by using a long-focus camera.Therefore, even if the electronic device magnifies the display of thetarget object in the second image by a preset power, the electronicdevice can still magnify the display of the target object with anadequate display effect.

For example, in the embodiments of the present disclosure, in a casethat the electronic device displays the first image, if the user needsto view a display effect after some target objects in the first imageare magnified, the user may use an input (for example, a second inputbelow) to trigger the electronic device to enter an object analysis andmagnification mode, and then the electronic device may automaticallyobtain the second image in the object analysis and magnification mode.

For example, with reference to FIG. 2 above, as shown in FIG. 5, beforethe foregoing S201, the object display method provided in theembodiments of the present disclosure may further include the followingS205. In addition, the foregoing S201 may be specifically implemented byusing the following S201 a.

S205: An electronic device receives a second input for an objectanalysis and magnification control.

For example, in the embodiments of the present disclosure, after theuser triggers the electronic device to run a gallery applicationprogram, the electronic device may run the gallery application programin the foreground, and the electronic device may display a galleryapplication interface (that is, an interface of the gallery applicationprogram) on a screen. The gallery application interface may include atleast one control (each control may be used for indicating one mode). Asshown by (a) in FIG. 6, the at least one control may include an objectanalysis and magnification control. The object analysis andmagnification control may be used for indicating an object analysis andmagnification mode. Specifically, in the object analysis andmagnification mode, the electronic device may obtain the second imagefrom the electronic device according to a requirement of the user,recognize the target object from the second image, then magnifies thetarget object according to a preset power, and finally displays themagnified target object for the user to view the magnified displayeffect of the target object.

For example, in the embodiments of the present disclosure, as shown by(a) in FIG. 6, the at least one control may further include any otherpossible control such as a beautification control and a mosaic control.The beautification control may be used for indicating a beautificationmode, and the mosaic control may be used for indicating a mosaic mode.In the beautification mode, the electronic device may perform abeautification operation on an image; and in the mosaic mode, theelectronic device may perform a mosaic operation on an image.

For example, in the embodiments of the present disclosure, the secondinput may be specifically a click input, a long press input or a heavypress input by the user for the object analysis and magnificationcontrol or may be a speech input by the user or may be any possibleinput such as a gesture input by the user. This is not limited in theembodiments of the present disclosure.

For example, the speech input may be any possible speech input such as“object analysis and magnification” uttered by the user. The gestureinput may be a gesture input the same as a preset gesture input (it maybe understood that the preset gesture input may be a preset gestureinput for implementing the obtaining of the second image in theembodiments of the present disclosure).

S201 a: The electronic device obtains a second image in response to thesecond input in a case that the electronic device displays a firstimage.

In the embodiments of the present disclosure, in a case that theelectronic device displays the first image acquired by the first cameraand the electronic device receives the second input by the user for theobject analysis and magnification control, the electronic device mayobtain, in response to the second input, the second image acquired bythe second camera.

For example, in the embodiments of the present disclosure, after theelectronic device receives the second input by the user for the objectanalysis and magnification control, the electronic device may control,in response to the second input, the gallery application program of theelectronic device to be in the object analysis and magnification mode.It may be understood that after the electronic device receives thesecond input by the user for the object analysis and magnificationcontrol, the electronic device may control the gallery applicationprogram to be in the object analysis and magnification mode.

Further, in a case that the electronic device displays the first image,and the electronic device receives the second input by the user for theobject analysis and magnification control, the electronic device maycontrol, in response to the second input, the gallery applicationprogram of the electronic device to be in the object analysis andmagnification mode, and obtain the second image.

It needs to be noted that after the electronic device performs thesecond input on the object analysis and magnification control (that is,the gallery application program is in the object analysis andmagnification mode), if the electronic device displays the first imageacquired by the first camera, the electronic device may automaticallyobtain the second image acquired by the second camera. When the galleryapplication program is not in the object analysis and magnificationmode, even if the electronic device displays the first image acquired bythe first camera, the electronic device does not obtain the second imageacquired by the second camera.

In the embodiments of the present disclosure, because the second camerais a long-focus camera, the second image that is obtained by theelectronic device and is acquired by the second camera has relativelyhigh resolution, so that a success rate of recognizing the objects inthe second image by the electronic device is relatively high. In thisway, the electronic device can accurately recognize the target object inthe second image. In addition, the second image has relatively highresolution. Therefore, even if the electronic device magnifies thedisplay of a target object in the second image, the electronic devicecan still magnify the display of the target object with an adequatedisplay effect, so that a requirement of viewing the magnified displayeffect of the target object by the user can be better satisfied.

Further, the electronic device can obtain the second image acquired bythe second camera only in a case that the gallery application program isin the object analysis and magnification mode, that is, the electronicdevice does not obtain the second image acquired by the second camera ina case that the gallery application program is not in the objectanalysis and magnification mode. Therefore, the electronic device can beprevented from performing unnecessary acquisition operations, so thatthe power consumption of the electronic device can be reduced.

For example, in the embodiments of the present disclosure, before theelectronic device recognizes the objects in the second image accordingto the target attribute information, the electronic device may firstdisplay at least one attribute option, and then the user may select atarget attribute option from the at least one attribute option, so thatthe electronic device may recognize the objects in the second imageaccording to the target attribute information indicated by the targetattribute option, to obtain the target object corresponding to thetarget attribute information.

For example, before the foregoing S202 a, the object display methodprovided in the embodiments of the present disclosure may furtherinclude the following S206 and S207. In addition, the foregoing S202 amay be specifically implemented by using the following S202 a 3.

S206: The electronic device displays at least one attribute option.

Each attribute option in the at least one attribute option may be usedfor indicating one piece of attribute information.

For example, in the embodiments of the present disclosure, the at leastone attribute option may include any possible attribute option such asan animal option, a plant option, a person option, and an electronicproduct option. Details may be set according to an actual userequirement. This is not limited in the embodiments of the presentdisclosure.

In the embodiments of the present disclosure, after the user selects theobject analysis and magnification control from the at least one control,that is, the electronic device receives the second input by the user, inresponse to the second input, the electronic device may be controlled tobe in the object analysis and magnification mode, and the at least oneattribute option may be displayed, so that the user may select oneattribute option from the at least one attribute option, and then theelectronic device is triggered to recognize the at least one object (atleast one physical object corresponding to the at least one objectbelongs to an attribute corresponding to the attribute option)corresponding to the attribute option from the second image.

For example, it is assumed that the at least one attribute optionincludes an animal option, a plant option, and a person option. (a) inFIG. 6 is a schematic diagram of a gallery application interfacedisplayed by the electronic device. The interface includes abeautification control (shown by 60 in (a) in FIG. 6), a mosaic control(shown by 61 in (a) in FIG. 6), and an object analysis and magnificationcontrol (shown by 62 in (a) in FIG. 6). After the user selects theobject analysis and magnification control 62, that is, the electronicdevice receives the second input by the user, in response to the secondinput, as shown in (b) FIG. 6, the electronic device may control thegallery application program to be in the object analysis andmagnification mode (display of an option of the object analysis andmagnification mode is magnified in the figure to indicate that thegallery application program is already in the object analysis andmagnification mode), and display an animal option (shown by 63 in (b) inFIG. 6), a plant animal option (shown by 64 in (b) in FIG. 6), and aperson option (shown by 65 in (b) in FIG. 6).

S207: The electronic device receives a third input by the user for atarget attribute option in the at least one attribute option.

The target attribute option may be used for indicating the targetattribute information.

In the embodiments of the present disclosure, the third input may beused for determining the target attribute information. That is, the usermay perform the third input on the target attribute option in the atleast one attribute option, to trigger the electronic device todetermine the target attribute information indicated by the targetattribute option.

For example, in the embodiments of the present disclosure, the thirdinput may be specifically an input by the user for the target attributeoption. The third input may be specifically an input in any possibleform such as a click input, a long press input or a heavy press input bythe user for the target attribute option. Details may be determinedaccording to an actual use requirement. This is not limited in theembodiments of the present disclosure.

For the description of the click input, the long press input or theheavy press input, reference may be made to related description of theclick input, the long press input or the heavy press input in theforegoing embodiments. To avoid repetition, details are not describedherein again.

S202 a 3: The electronic device recognizes, in response to the thirdinput, the objects in the second image according to the target attributeinformation indicated by the target attribute option to obtain M targetobject(s) in the second image.

In the embodiments of the present disclosure, after the electronicdevice receives the third input by the user for the target attributeoption in the at least one attribute option, the electronic device mayrecognize, in response to the third input, the objects in the secondimage according to the target attribute information indicated by thetarget attribute option, to obtain the M target object(s) in the secondimage.

It needs to be noted that for the description of the recognizing theobjects in the second image according to the target attributeinformation, reference may be made to the description of the foregoingS202 a 1 and S202 a 2. To avoid repetition, details are not describedherein again.

In the embodiments of the present disclosure, the user may select anattribute option according to an actual use requirement of the user.Therefore, the electronic device can accurately recognize the objectscorresponding to the attribute information indicated by the attributeoption in the second image, that is, the electronic device canaccurately recognize objects that the user needs to recognize, toprevent the electronic device from recognizing other objects that theuser does not need to recognize.

It should be noted that in the embodiments of the present disclosure,the object display methods shown in the foregoing accompanying drawingsof methods are all exemplarily described by using the accompanyingdrawings in the embodiments of the present disclosure as examples.During specific implementation, the object display methods shown in theforegoing accompanying drawings of methods may be implemented withreference to any other drawing that can be combined in the foregoingembodiments.

As shown in FIG. 7, the embodiments of the present disclosure provide anelectronic device 400. The electronic device 400 may include anobtaining module 401, a processing module 402, and a receiving module403. The obtaining module 401 may be configured to obtain a second imagein a case that a first image is displayed, where the first image may bean image acquired by a first camera, the second image may be an imageacquired by a second camera, each of the first image and the secondimage may include a plurality of objects, the plurality of objects areimages of a plurality of first physical objects, and resolution of thesecond image is greater than that of the first image. The processingmodule 402 may be configured to display at least one identifier in thefirst image according to the second image obtained by the obtainingmodule 401, where the at least one identifier may be used for indicatingM target object(s) in the plurality of objects in the first image, and Mis a positive integer. The receiving module 403 may be configured toreceive a first input for a first object in the M target object(s) inthe first image displayed by the processing module 402. The processingmodule 402 may be further configured to magnify display of a firstobject in the second image in response to the first input received bythe receiving module 403.

For example, in the embodiments of the present disclosure, the receivingmodule 403 may be further configured to receive a second input for anobject analysis and magnification control before the obtaining module401 obtains the second image; and the obtaining module 401 may befurther configured to obtain the second image in response to the secondinput received by the receiving module 403.

For example, in the embodiments of the present disclosure, theprocessing module 402 may be further configured to: recognize theobjects in the second image according to target attribute information toobtain M target object(s) in the second image; and display the at leastone identifier in the first image according to the M target object(s) inthe second image, where at least one physical object corresponding tothe M target object(s) in the second image may belong to an attributeindicated by the target attribute information.

For example, in the embodiments of the present disclosure, theprocessing module 402 may be further configured to: display at least oneattribute option before the objects in the second image are recognizedaccording to the target attribute information, where each attributeoption in the at least one attribute option may be used for indicatingone piece of attribute information; and the receiving module 403 may befurther configured to receive a third input for a target attributeoption in the at least one attribute option displayed by the processingmodule 402; and the processing module 402 may be further configured torecognize the objects in the second image according to the targetattribute information indicated by the target attribute option inresponse to the third input received by the receiving module 403.

For example, in the embodiments of the present disclosure, theprocessing module 402 may be further configured to: obtain at least onetemplate image from a template library according to the target attributeinformation; and match the second image against the at least onetemplate image to recognize the objects in the second image, where atleast one physical object corresponding to at least one object in the atleast one template image may belong to the attribute indicated by thetarget attribute information.

For example, in the embodiments of the present disclosure, the secondimage may be an image acquired by the second camera and stored in a casethat the first camera is triggered to acquire the first image.

For example, in the embodiments of the present disclosure, a focallength of the second camera may be greater than that of the firstcamera.

The electronic device provided in the embodiments of the presentdisclosure can implement various processes implemented by the electronicdevice in the foregoing method embodiments. To avoid repetition, detailsare not described herein again.

In the electronic device provided in the embodiments of the presentdisclosure, in a case that the electronic device displays a first imagethat is acquired by a first camera and includes a plurality of objects,the electronic device may obtain a second image that is acquired by asecond camera and includes the plurality of objects (the plurality ofobjects are images of a plurality of first physical objects, andresolution of the second image is greater than that of the first image).In addition, the electronic device may display, in the first imageaccording to the second image, at least one identifier for indicating Mtarget object(s) in the plurality of objects in the first image. Thenthe electronic device may receive a first input by a user for a firstobject in the M target object(s) in the first image. The electronicdevice magnifies display of a first object in the second image inresponse to the first input. By means of the solution, if the user needsto view a magnified display effect of a target object in the pluralityof objects in the first image, the electronic device may obtain thesecond image that includes the plurality of objects, and magnify displayof the target object in the second image. Resolution of the second imageis greater than that of the first image. Therefore, when the electronicdevice magnifies the display of the target object in the second image,it can be ensured that the electronic device magnifies the display ofthe target object with an adequate display effect.

FIG. 8 is a schematic diagram of the hardware of an electronic deviceaccording to various embodiments of the present disclosure. As shown inFIG. 8, the electronic device 100 includes, but is not limited to,components such as a radio frequency unit 101, a network module 102, anaudio output unit 103, an input unit 104, a sensor 105, a display unit106, a user input unit 107, an interface unit 108, a memory 109, aprocessor 110, and a power supply 111. A person skilled in the art mayunderstand that the electronic device structure shown in FIG. 8 does notconstitute a limitation to the electronic device. The electronic devicemay include more or fewer components than those shown in the figure, orsome components may be combined, or a different component deployment maybe used. In the embodiments of the present disclosure, the electronicdevice includes, but is not limited to, a mobile phone, a tabletcomputer, a notebook computer, a palmtop computer, an in-vehicleterminal, a wearable device, a pedometer, and the like.

The processor 110 may be configured to: obtain a second image in a casethat the display unit 106 displays a first image, control the displayunit 106 to display at least one identifier in the first image accordingto the second image, control the user input unit 107 to receive a firstinput for a first object in M target object(s) in the first image, andmagnify display of a first object in the second image in response to thefirst input. The first image is an image acquired by a first camera, thesecond image is an image acquired by a second camera, each of the firstimage and the second image includes a plurality of objects, theplurality of objects are images of a plurality of first physicalobjects, and resolution of the second image is greater than that of thefirst image. The at least one identifier is used for indicating the Mtarget object(s) in the plurality of objects in the first image, and Mis a positive integer.

It may be understood that in the embodiments of the present disclosure,the obtaining module 401 and the processing module 402 in the schematicstructural diagram (for example, FIG. 7 above) of the foregoingelectronic device may be implemented by using the processor 110. Thereceiving module 403 in the schematic structural diagram (for example,FIG. 7 above) of the foregoing electronic device may be implemented byusing the foregoing user input unit 107.

The embodiments of the present disclosure provide an electronic device.In a case that the electronic device displays a first image that isacquired by a first camera and includes a plurality of objects, theelectronic device may obtain a second image that is acquired by a secondcamera and includes the plurality of objects (the plurality of objectsare images of a plurality of first physical objects, and resolution ofthe second image is greater than that of the first image). In addition,the electronic device may display, in the first image according to thesecond image, at least one identifier for indicating M target object(s)in the plurality of objects in the first image. Then the electronicdevice may receive a first input by a user for a first object in the Mtarget object(s) in the first image. The electronic device magnifiesdisplay of a first object in the second image in response to the firstinput. By means of the solution, if the user needs to view a magnifieddisplay effect of a target object in the plurality of objects in thefirst image, the electronic device may obtain the second image thatincludes the plurality of objects, and magnify display of the targetobject in the second image. Resolution of the second image is greaterthan that of the first image. Therefore, when the electronic devicemagnifies the display of the target object in the second image, it canbe ensured that the electronic device magnifies the display of thetarget object with an adequate display effect.

It should be understood that in the embodiments of the presentdisclosure, the radio frequency unit 101 may be configured to send andreceive a signal in an information receiving and sending process or acall process. Specifically, the radio frequency unit receives downlinkdata from a base station, and then delivers the downlink data to theprocessor 110 for processing; and in addition, sends uplink data to thebase station. Generally, the radio frequency unit 101 includes, but isnot limited to, an antenna, at least one amplifier, a transceiver, acoupler, a low noise amplifier, a duplexer, and the like. In addition,the radio frequency unit 101 may further communicate with a network andanother device through a wireless communication system.

The electronic device provides wireless broadband Internet access to auser by using the transmission module 102, for example, helps the userto send and receive an email, browse a webpage, and access stream media,and the like.

The audio output unit 103 may convert audio data received by the radiofrequency unit 101 or the network module 102 or stored in the memory 109into an audio signal and output the audio signal as sound. Moreover, theaudio output unit 103 may provide an audio output (such as call signalreceiving sound or message receiving sound) related to a specificfunction executed by the electronic device 100. The audio output unit103 includes a loudspeaker, a buzzer, a receiver, and the like.

The input unit 104 is configured to receive an audio signal or a videosignal. The input unit 104 may include a Graphics Processing Unit (GPU)1041 and a microphone 1042. The GPU 1041 processes image data of astatic picture or a video that is obtained by an image acquisitionapparatus (for example, a camera) in a video acquisition mode or animage acquisition mode. An image frame that has been processed may bedisplayed on a display unit 106. The image frame that has been processedby the GPU 1041 may be stored in the memory 109 (or another storagemedium) or sent by using the radio frequency unit 101 or the networkmodule 102. The microphone 1042 may receive a sound, and can process thesound into audio data. The processed audio data may be converted, in aphone talk mode, into a format that may be sent to a mobilecommunication base station via the radio frequency unit 101 for output.

The electronic device 100 further includes at least one sensor 105 suchas an optical sensor, a motion sensor, and other sensors. Specifically,the optical sensor includes an ambient light sensor and a proximitysensor, where the ambient light sensor may adjust luminance of thedisplay panel 1061 according to the luminance of the ambient light, andthe proximity sensor may switch off the display panel 1061 and/orbacklight when the electronic device 100 is moved to the ear. As onetype of motion sensor, an acceleration sensor may detect magnitude ofaccelerations in various directions (generally on three axes), maydetect magnitude and a direction of the gravity when static, and may beconfigured to recognize the attitude of the electronic device (forexample, switching between landscape orientation and portraitorientation, a related game, and magnetometer attitude calibration), afunction related to vibration recognition (such as a pedometer and aknock), and the like. The sensor 105 may further include a fingerprintsensor, a pressure sensor, an iris sensor, a molecular sensor, agyroscope, a barometer, a hygrometer, a thermometer, and an infraredsensor, and the like. Details are not described herein again.

The display unit 106 is configured to display information inputted bythe user or information provided to the user. The display unit 106 mayinclude a display panel 1061, and the display panel 1061 may beconfigured by using a Liquid Crystal Display (LCD), an OrganicLight-Emitting Diode (OLED), or the like.

The user input unit 107 may be configured to receive input digit orcharacter information, and generate key signal input related to the usersetting and function control of the electronic device. Specifically, theuser input unit 107 includes a touch panel 1071 and another input device1072. The touch panel 1071, also referred to as a touchscreen, maycollect a touch operation by a user on or near the touch panel (such asan operation of a user on or near the touch panel 1071 by using anysuitable object or attachment, such as a finger or a touch pen). Thetouch panel 1071 may include two parts: a touch detection apparatus anda touch controller. The touch detection apparatus detects a touchposition of the user, detects a signal generated by the touch operation,and transfers the signal to the touch controller. The touch controllerreceives the touch information from the touch detection apparatus,converts the touch information into touch point coordinates, andtransmits the touch point coordinates to the processor 110. Moreover,the touch controller receives and executes a command sent from theprocessor 110. In addition, the touch panel 1071 may be implemented byusing various types, such as a resistive type, a capacitive type, aninfrared type, and a surface acoustic wave type. In addition to thetouch panel 1071, the user input unit 107 may further include theanother input device 1072. Specifically, the another input device 1072may include, but not limited to, a physical keyboard, a functional key(such as a volume control key or a switch key), a track ball, a mouse,and a joystick. Details are not described herein again.

Further, the touch panel 1071 may cover the display panel 1061. Afterdetecting a touch operation on or near the touch panel 1071, the touchpanel 1071 transfers the touch operation to the processor 110, so as todetermine a type of the touch event. Then, the processor 110 providescorresponding visual output on the display panel 1061 according to thetype of the touch event. Although, in FIG. 8, the touch panel 1071 andthe display panel 1061 are used as two separate parts to implement inputand output functions of the electronic device, in some embodiments, thetouch panel 1071 and the display panel 1061 may be integrated toimplement the input and output functions of the electronic device, whichare not limited herein.

The interface unit 108 is an interface for connecting an externalapparatus to the electronic device 100. For example, the externalapparatus may include a wired or wireless headset port, an externalpower supply (or a battery charger) port, a wired or wireless data port,a storage card port, a port used to connect an apparatus having anidentification module, an audio Input/Output (I/O) port, a video I/Oport, an earphone port, and the like. The interface unit 108 may beconfigured to receive an input (such as data information or electricpower) from an external apparatus and transmit the received input to oneor more elements in the electronic device 100 or may be configured totransmit data between the electronic device 100 and an externalapparatus.

The memory 109 may be configured to store a software program and variousdata. The memory 109 may mainly include a program storage region and adata storage region. The program storage region may store an operatingsystem, an application program (such as a sound play function or animage play function) that is required by at least one function, and thelike. The data storage region may store data (such as audio data or aphonebook) that is created according to use of the mobile phone, and thelike. In addition, the memory 109 may include a high-speed random accessmemory, and may further include a nonvolatile memory, such as at leastone magnetic disk storage device, a flash memory, or another nonvolatilesolid-state storage device.

The processor 110 is a control center of the electronic device, andconnects various parts of the entire electronic device by using variousinterfaces and lines. By running or executing a software program and/ora module stored in the memory 109, and invoking data stored in thememory 109, the processor performs various functions of the electronicdevice and processes data, thereby performing overall monitoring on theelectronic device. The processor 110 may include one or more processingunits. For example, the processor 110 may integrate an applicationprocessor and a modem processor. The application processor mainlyprocesses an operating system, a user interface, an application program,and the like. The modem processor mainly processes wirelesscommunication. It may be understood that the modulation and demodulationprocessor may not be integrated into the processor 110.

The electronic device 100 further includes a power supply 111 (such as abattery) for supplying power to the components. For example, the powersupply 111 may be logically connected to the processor 110 by a powermanagement system, thereby implementing functions such as charging,discharging, and power consumption management by using the powermanagement system.

In addition, the electronic device 100 includes some functional modulesthat are not shown. Details are not described herein again.

For example, the embodiments of the present disclosure further providean electronic device, as shown in FIG. 8, including the processor 110and the memory 109 and a computer program stored in the memory 109 andrunnable on the processor 110, where when the computer program isexecuted by the processor 110, various processes of the methodembodiments are implemented, and the same technical effects can beachieved. To avoid repetition, details are not described herein again.

For example, the embodiments of the present disclosure further provide anon-transitory computer-readable storage medium, storing a computerprogram, where when the computer program is executed by a processor,various processes of the foregoing method embodiments are implemented,and the same technical effects can be achieved. To avoid repetition,details are not described herein again. The non-transitorycomputer-readable storage medium may include, for example, a Read-OnlyMemory (ROM), a Random Access Memory (RAM), a magnetic disk, or anoptical disc.

It should be noted that the terms “include”, “comprise”, or any othervariation thereof in this specification is intended to cover anon-exclusive inclusion, so that a process, a method, an article, or anapparatus that includes a series of elements not only includes thoseelements but also includes other elements that are not expressly listed,or further includes elements inherent to such a process, method,article, or apparatus. Without more limitations, elements defined by thesentence “including one” does not exclude that there are still othersame elements in the processes, methods, objects, or apparatuses.

Through the foregoing description on the implementations, a personskilled in the art can clearly learn that the foregoing embodimentmethods may be implemented by using software in combination with anecessary universal hardware platform. Certainly, the embodiment methodsmay also be implemented by using hardware, but the former is a betterimplementation in many cases. Based on such an understanding, thetechnical solutions of the present application essentially or the partcontributing to the prior art may be implemented in the form of asoftware product. The computer software product is stored in a storagemedium (such as a ROM/RAM, a magnetic disk, or an optical disc) andincludes several instructions for instructing an electronic device(which may be a mobile phone, a computer, a server, an air conditioner,a network device, or the like) to perform the methods described in theembodiments of the present application.

The embodiments of the present application have been described abovewith reference to the accompanying drawings. The present application isnot limited to the specific embodiments described above, and thespecific embodiments described above are merely exemplary and notlimitative. Those of ordinary skill in the art may make variousvariations under the teaching of the present application withoutdeparting from the spirit of the present application and the protectionscope of the claims, and such variations shall all fall within theprotection scope of the present application.

What is claimed is:
 1. An object display method, comprising: obtaining asecond image in a case that a first image is displayed, wherein thefirst image is an image acquired by a first camera, the second image isan image acquired by a second camera, each of the first image and thesecond image comprises a plurality of objects, the plurality of objectsare images of a plurality of first physical objects, and resolution ofthe second image is greater than that of the first image; displaying atleast one identifier in the first image according to the second image,wherein the at least one identifier is used for indicating M targetobject(s) in the plurality of objects in the first image, and M is apositive integer; receiving a first input for a first object in the Mtarget object(s) in the first image; and magnifying display of a firstobject in the second image in response to the first input.
 2. The methodaccording to claim 1, wherein before the obtaining a second image, themethod further comprises: receiving a second input for an objectanalysis and magnification control; and the obtaining a second imagecomprises: obtaining the second image in response to the second input.3. The method according to claim 1, wherein the displaying at least oneidentifier in the first image according to the second image comprises:recognizing the objects in the second image according to targetattribute information to obtain M target object(s) in the second image,wherein at least one physical object corresponding to the M targetobject(s) in the second image belongs to an attribute indicated by thetarget attribute information; and displaying the at least one identifierin the first image according to the M target object(s) in the secondimage.
 4. The method according to claim 3, wherein before therecognizing the objects in the second image according to targetattribute information, the method further comprises: displaying at leastone attribute option, wherein each attribute option is used forindicating one piece of attribute information; and receiving a thirdinput for a target attribute option in the at least one attributeoption; and the recognizing the objects in the second image according totarget attribute information comprises: recognizing the objects in thesecond image according to the target attribute information indicated bythe target attribute option in response to the third input.
 5. Themethod according to claim 3, wherein the recognizing the objects in thesecond image according to target attribute information comprises:obtaining at least one template image from a template library accordingto the target attribute information, wherein at least one physicalobject corresponding to at least one object in the at least one templateimage belongs to the attribute indicated by the target attributeinformation; and matching the second image against the at least onetemplate image to recognize the objects in the second image.
 6. Themethod according to claim 1, wherein the second image is an imageacquired by the second camera and stored in a case that the first camerais triggered to acquire the first image.
 7. The method according toclaim 1, wherein a focal length of the second camera is greater thanthat of the first camera.
 8. An electronic device, comprising: a memorystoring computer-readable instructions; and a processor coupled to thememory and configured to execute the computer-readable instructions,wherein the computer-readable instructions, when executed by theprocessor, cause the processor to perform operations comprising:obtaining a second image in a case that a first image is displayed,wherein the first image is an image acquired by a first camera, thesecond image is an image acquired by a second camera, each of the firstimage and the second image comprises a plurality of objects, theplurality of objects are images of a plurality of first physicalobjects, and resolution of the second image is greater than that of thefirst image; displaying at least one identifier in the first imageaccording to the second image, wherein the at least one identifier isused for indicating M target object(s) in the plurality of objects inthe first image, and M is a positive integer; receiving a first inputfor a first object in the M target object(s) in the first image; andmagnifying display of a first object in the second image in response tothe first input.
 9. The electronic device according to claim 8, whereinbefore the obtaining a second image, the operations further comprise:receiving a second input for an object analysis and magnificationcontrol; and the obtaining a second image comprises: obtaining thesecond image in response to the second input.
 10. The electronic deviceaccording to claim 8, wherein the displaying at least one identifier inthe first image according to the second image comprises: recognizing theobjects in the second image according to target attribute information toobtain M target object(s) in the second image, wherein at least onephysical object corresponding to the M target object(s) in the secondimage belongs to an attribute indicated by the target attributeinformation; and displaying the at least one identifier in the firstimage according to the M target object(s) in the second image.
 11. Theelectronic device according to claim 10, wherein before the recognizingthe objects in the second image according to target attributeinformation, the operations further comprise: displaying at least oneattribute option, wherein each attribute option is used for indicatingone piece of attribute information; and receiving a third input for atarget attribute option in the at least one attribute option; and therecognizing the objects in the second image according to targetattribute information comprises: recognizing the objects in the secondimage according to the target attribute information indicated by thetarget attribute option in response to the third input.
 12. Theelectronic device according to claim 10, wherein the recognizing theobjects in the second image according to target attribute informationcomprises: obtaining at least one template image from a template libraryaccording to the target attribute information, wherein at least onephysical object corresponding to at least one object in the at least onetemplate image belongs to the attribute indicated by the targetattribute information; and matching the second image against the atleast one template image to recognize the objects in the second image.13. The electronic device according to claim 8, wherein the second imageis an image acquired by the second camera and stored in a case that thefirst camera is triggered to acquire the first image.
 14. The electronicdevice according to claim 8, wherein a focal length of the second camerais greater than that of the first camera.
 15. A non-transitorycomputer-readable medium, storing instructions that, when executed by aprocessor, cause the processor to perform operations comprising:obtaining a second image in a case that a first image is displayed,wherein the first image is an image acquired by a first camera, thesecond image is an image acquired by a second camera, each of the firstimage and the second image comprises a plurality of objects, theplurality of objects are images of a plurality of first physicalobjects, and resolution of the second image is greater than that of thefirst image; displaying at least one identifier in the first imageaccording to the second image, wherein the at least one identifier isused for indicating M target object(s) in the plurality of objects inthe first image, and M is a positive integer; receiving a first inputfor a first object in the M target object(s) in the first image; andmagnifying display of a first object in the second image in response tothe first input.
 16. The non-transitory computer-readable mediumaccording to claim 15, wherein before the obtaining a second image, theoperations further comprise: receiving a second input for an objectanalysis and magnification control; and the obtaining a second imagecomprises: obtaining the second image in response to the second input.17. The non-transitory computer-readable medium according to claim 15,wherein the displaying at least one identifier in the first imageaccording to the second image comprises: recognizing the objects in thesecond image according to target attribute information to obtain Mtarget object(s) in the second image, wherein at least one physicalobject corresponding to the M target object(s) in the second imagebelongs to an attribute indicated by the target attribute information;and displaying the at least one identifier in the first image accordingto the M target object(s) in the second image.
 18. The non-transitorycomputer-readable medium according to claim 17, wherein before therecognizing the objects in the second image according to targetattribute information, the operations further comprise: displaying atleast one attribute option, wherein each attribute option is used forindicating one piece of attribute information; and receiving a thirdinput for a target attribute option in the at least one attributeoption; and the recognizing the objects in the second image according totarget attribute information comprises: recognizing the objects in thesecond image according to the target attribute information indicated bythe target attribute option in response to the third input.
 19. Thenon-transitory computer-readable medium according to claim 17, whereinthe recognizing the objects in the second image according to targetattribute information comprises: obtaining at least one template imagefrom a template library according to the target attribute information,wherein at least one physical object corresponding to at least oneobject in the at least one template image belongs to the attributeindicated by the target attribute information; and matching the secondimage against the at least one template image to recognize the objectsin the second image.
 20. The non-transitory computer-readable mediumaccording to claim 15, wherein the second image is an image acquired bythe second camera and stored in a case that the first camera istriggered to acquire the first image.